﻿
// ResPkgDlg.h: 头文件
//

#pragma once


#define WM_UPDATE_PROGRESS	(WM_USER + 1)
#define WM_FINISH_OPEN		(WM_USER + 2)

// CResPkgDlg 对话框
class CResPkgDlg : public CDialog
{
// 构造
public:
	CResPkgDlg(CWnd* pParent = nullptr);	// 标准构造函数
	virtual ~CResPkgDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_RESPKG_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnFileNew();
	afx_msg void OnFileClose();
	afx_msg void OnFileOpen();
	BOOL _OnFileSave();
	afx_msg void OnFileSave();
	BOOL _OnFileSaveas();
	afx_msg void OnFileSaveas();
	afx_msg void OnFileInsert();
	afx_msg void OnFileExport();
	afx_msg void OnFileEdit();
	afx_msg void OnFileDelete();
	afx_msg void OnFileExit();
	afx_msg void OnHelpAbout();
	afx_msg void OnClose();
	afx_msg LRESULT OnUpdateProgress(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnFinishOpen(WPARAM wParam, LPARAM lParam);
	afx_msg void OnNMDblclkItemsList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDropFiles(HDROP hDropInfo);
	DECLARE_MESSAGE_MAP()
protected:
	CString m_strTitle;
	HACCEL m_hAccel;
	CListCtrl m_listCtrl;
	CEdit m_filePath;
	CEdit m_fileState;
	CProgressCtrl m_progress;
protected:
	void RefreshList();
};
